//
//  LLHttpRequest.h
//  UserUse
//
//  Created by angra on 16/10/11.
//  Copyright © 2016年 CJPC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LLHttpRequest : NSObject

/*
    POST请求
 */
+(void)post:(NSString *)urlStr parameters:(id)params success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;
/*
    GET请求
 */
+(void)get:(NSString *)urlStr parameters:(id)params success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;
/*
    上传头像，关键字默认为photo
 */
+(void)postData:(NSString *)urlStr parameters:(id)params  formData:(NSData *)data success:(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;
@end
